package com.qys.livesMall.shortVideo.model.vo.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: dp
 * Date: 2023/05/10
 * Time: 9:59
 * DESCRIPTION: 短视频评论信息
 */
@Data
public class AppShortVideoCommentVO {

    @Schema(description = "id")
    private String id;

    @Schema(description = "评论")
    private String comment;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime createTime;

    @Schema(description = "用户昵称")
    private String userName;

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "有多少条回复")
    private Long count;

    @Schema(description = "点赞数量")
    private Integer like;

    @Schema(description = "子评论")
    private List<CommentVideoVO> childComment;

    @Schema(description = "是否已点赞（0否，1是）")
    private Integer alreadyLiked;
}
